package com.zhongli.devplatform.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotBlank;

/**
 * 用户绑定 数据传输对象
 */
@Data
@Validated
@ApiModel(value = "用户绑定",description = "用户绑定数据传输对象")
public class UserBindDTO {

    @ApiModelProperty(name = "type",value = "绑定类型(1微信，2QQ)")
    private Integer type;

    /**
     * 手机号
     */
    @NotBlank(message = "手机号不能为空")
    @ApiModelProperty(name = "phone",value = "手机号必填", required = true)
    private String phone;

    /**
     * 验证码
     */
    @NotBlank(message = "验证码不能为空")
    @ApiModelProperty(name = "code",value = "手机验证码",required = true)
    private String code;

    /**
     * 绑定所需用户唯一id
     */
    @NotBlank(message = "openId不能为空")
    @ApiModelProperty(name = "openId",value = "openId必填",required = true)
    private String openId;

    /**
     * 邀请码
     */
    @ApiModelProperty(name = "invitationCode",value = "班级邀请码(学生绑定必填)")
    private String invitationCode;


}
